﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using eBay;

namespace eBayMonitorer {
    public partial class frmFindItemsByCategory : Form {
        public frmFindItemsByCategory() {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e) {
            eBayResponseType resp = API.FindingAPI.FindItemsByCategory(textBox1.Text);
            if (!resp.HasErrors) {
                MessageBox.Show(eBay.Categories.GetCategoryName(Convert.ToInt32(textBox1.Text)));
            }
        }
    }
}
